package org.eiahe.hr.attendance.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.eiahe.hr.attendance.domain.AnnualLeaveAdjustLog;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 年假调整日志视图对象 hr_annual_leave_adjust_log
 *
 * @author zhangnn
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = AnnualLeaveAdjustLog.class)
public class AnnualLeaveAdjustLogVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 日志ID
     */
    @ExcelProperty(value = "日志ID")
    private Long logId;

    /**
     * 年假记录ID
     */
    private Long annualLeaveId;

    /**
     * 工号
     */
    @ExcelProperty(value = "工号")
    private String employeeNo;

    /**
     * 员工姓名
     */
    @ExcelProperty(value = "员工姓名")
    private String employeeName;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 调整类型
     */
    @ExcelProperty(value = "调整类型")
    private String adjustType;

    /**
     * 调整类型名称
     */
    @ExcelProperty(value = "调整类型名称")
    private String adjustTypeName;

    /**
     * 调整天数
     */
    @ExcelProperty(value = "调整天数")
    private BigDecimal adjustDays;

    /**
     * 调整前天数
     */
    @ExcelProperty(value = "调整前天数")
    private BigDecimal beforeDays;

    /**
     * 调整后天数
     */
    @ExcelProperty(value = "调整后天数")
    private BigDecimal afterDays;

    /**
     * 调整原因
     */
    @ExcelProperty(value = "调整原因")
    private String adjustReason;

    /**
     * 操作人ID
     */
    private Long operatorId;

    /**
     * 操作人姓名
     */
    @ExcelProperty(value = "操作人姓名")
    private String operatorName;

    /**
     * 创建时间
     */
    @ExcelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
}
